package com.dycn.posdashboard.data;

import com.dycn.posdashboard.util.MD5Support;

public class User {

    private String userName;

    private String password;

    private String obscurePassword;
    
    private String dbUser;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
        if (password == null || "".equals(password)) {
            this.password = null;
        } else {
            this.obscurePassword = MD5Support.MD5(password);
        }
    }

    public String getObscurePassword() {
        return obscurePassword;
    }

    public void setObscurePassword(String obscurePassword) {
        this.obscurePassword = obscurePassword;
    }

    public String getDbUser() {
        return dbUser;
    }

    public void setDbUser(String dbUser) {
        this.dbUser = dbUser;
    }
}